-- GENERATED SPELL FOR [Ragestone Trampler] --


function spell0_20280(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_20280', 15000, 1)
end

function spell1_20280(pUnit, Event) --@Threshalisk Charge,n/a--
pUnit:FullCastSpellOnTarget(35385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20280', 585, 1)
end

function spell2_20280(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_20280', 597, 1)
end

function Sorts_20280(pUnit, Event)
local choix_sorts_20280 = math.random(0, 2)
if choix_sorts_20280 == 0 then
pUnit:RegisterEvent('spell0_20280', 1, 1)
end
if choix_sorts_20280 == 1 then
pUnit:RegisterEvent('spell1_20280', 1, 1)
end
if choix_sorts_20280 == 2 then
pUnit:RegisterEvent('spell2_20280', 1, 1)
end
end

function mob20280_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20280', math.random(1500, 3000), 1)
end

function mob20280_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20280_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20280_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20280, 1, 'mob20280_Action')
RegisterUnitEvent(20280, 2, 'mob20280_Leave')
RegisterUnitEvent(20280, 3, 'mob20280_Kill')
RegisterUnitEvent(20280, 4, 'mob20280_Die')
